// 引入 request 文件
import request from '@/util/request'


// 登录列表
export const loginOwnerInfo = (params) => {
	return request({
		url: '/app/sso/login',
		method: 'post',
		data: params
	})
}
export const getCode = (params) => {
	return request({
		url: '/app/sso/getcode',
		method: 'get',
		data: params
	})
}
// 手机号登录列表
export const loginByPhone = (params) => {
	return request({
		url: '/app/sso/phonelogin',
		method: 'post',
		data: params
	})
}

// 注册列表
export const saveOwnerInfo = (params) => {
	return request({
		url: '/app/sso/save',
		method: 'post',
		data: params
	})
}

// 编辑列表
export const updateOwnerInfo = (params) => {
	return request({
		url: '/app/sso/update',
		method: 'post',
		data: params
	})
}

// 查询列表
export const selectOwnerInfo = (params) => {
	return request({
		url: '/app/sso/select',
		method: 'get',
		data: params
	})
}

// id查询列表
export const selectByIdOwnerInfo = (params) => {
	return request({
		url: '/app/sso/selectById/{ownerId}',
		method: 'get',
		data: params
	})
}

// 删除列表
export const deleteOwnerInfo = (id) => {
	return request({
		url: '/app/sso/delete?id=' + id,
		method: 'post',
	})
}